.version 49 0 
.class public final super com/liquid_technologies/ltxmllib18/WhitespaceUtils 
.super java/lang/Object 

.method public <init> : ()V 
    .code stack 1 locals 1 
L0:     aload_0 
L1:     invokespecial Method java/lang/Object <init> ()V 
L4:     return 
L5:     
    .end code 
.end method 

.method public static preserve : (Ljava/lang/String;)Ljava/lang/String; 
    .code stack 3 locals 4 
L0:     invokestatic Method com/liquid_technologies/ltxmllib18/XmlObjectBase getPreserveCharacterRefCR ()Z 
L3:     ifne L16 
L6:     aload_0 
L7:     bipush 13 
L9:     invokevirtual Method java/lang/String indexOf (I)I 
L12:    iconst_m1 
L13:    if_icmpne L18 
L16:    aload_0 
L17:    areturn 
L18:    aload_0 
L19:    invokevirtual Method java/lang/String length ()I 
L22:    istore_1 
L23:    new java/lang/StringBuffer 
L26:    dup 
L27:    iload_1 
L28:    invokespecial Method java/lang/StringBuffer <init> (I)V 
L31:    astore_2 
L32:    iconst_0 
L33:    istore_3 
L34:    iload_3 
L35:    iload_1 
L36:    if_icmpge L97 
L39:    aload_0 
L40:    iload_3 
L41:    invokevirtual Method java/lang/String charAt (I)C 
L44:    bipush 13 
L46:    if_icmpne L81 
L49:    iload_3 
L50:    iconst_1 
L51:    iadd 
L52:    iload_1 
L53:    if_icmpge L71 
L56:    aload_0 
L57:    iload_3 
L58:    iconst_1 
L59:    iadd 
L60:    invokevirtual Method java/lang/String charAt (I)C 
L63:    bipush 10 
L65:    if_icmpne L71 
L68:    iinc 3 1 
L71:    aload_2 
L72:    bipush 10 
L74:    invokevirtual Method java/lang/StringBuffer append (C)Ljava/lang/StringBuffer; 
L77:    pop 
L78:    goto L91 
L81:    aload_2 
L82:    aload_0 
L83:    iload_3 
L84:    invokevirtual Method java/lang/String charAt (I)C 
L87:    invokevirtual Method java/lang/StringBuffer append (C)Ljava/lang/StringBuffer; 
L90:    pop 
L91:    iinc 3 1 
L94:    goto L34 
L97:    aload_2 
L98:    invokevirtual Method java/lang/StringBuffer toString ()Ljava/lang/String; 
L101:   areturn 
L102:   
    .end code 
.end method 

.method public static replace : (Ljava/lang/String;)Ljava/lang/String; 
    .code stack 3 locals 4 
L0:     aload_0 
L1:     invokevirtual Method java/lang/String length ()I 
L4:     istore_1 
L5:     new java/lang/StringBuffer 
L8:     dup 
L9:     iload_1 
L10:    invokespecial Method java/lang/StringBuffer <init> (I)V 
L13:    astore_2 
L14:    iconst_0 
L15:    istore_3 
L16:    iload_3 
L17:    iload_1 
L18:    if_icmpge L109 
L21:    aload_0 
L22:    iload_3 
L23:    invokevirtual Method java/lang/String charAt (I)C 
L26:    bipush 13 
L28:    if_icmpne L63 
L31:    iload_3 
L32:    iconst_1 
L33:    iadd 
L34:    iload_1 
L35:    if_icmpge L53 
L38:    aload_0 
L39:    iload_3 
L40:    iconst_1 
L41:    iadd 
L42:    invokevirtual Method java/lang/String charAt (I)C 
L45:    bipush 10 
L47:    if_icmpne L53 
L50:    iinc 3 1 
L53:    aload_2 
L54:    bipush 32 
L56:    invokevirtual Method java/lang/StringBuffer append (C)Ljava/lang/StringBuffer; 
L59:    pop 
L60:    goto L103 
L63:    aload_0 
L64:    iload_3 
L65:    invokevirtual Method java/lang/String charAt (I)C 
L68:    bipush 9 
L70:    if_icmpeq L83 
L73:    aload_0 
L74:    iload_3 
L75:    invokevirtual Method java/lang/String charAt (I)C 
L78:    bipush 10 
L80:    if_icmpne L93 
L83:    aload_2 
L84:    bipush 32 
L86:    invokevirtual Method java/lang/StringBuffer append (C)Ljava/lang/StringBuffer; 
L89:    pop 
L90:    goto L103 
L93:    aload_2 
L94:    aload_0 
L95:    iload_3 
L96:    invokevirtual Method java/lang/String charAt (I)C 
L99:    invokevirtual Method java/lang/StringBuffer append (C)Ljava/lang/StringBuffer; 
L102:   pop 
L103:   iinc 3 1 
L106:   goto L16 
L109:   aload_2 
L110:   invokevirtual Method java/lang/StringBuffer toString ()Ljava/lang/String; 
L113:   areturn 
L114:   
    .end code 
.end method 

.method public static collapse : (Ljava/lang/String;)Ljava/lang/String; 
    .code stack 4 locals 6 
L0:     iconst_0 
L1:     istore_1 
L2:     iconst_1 
L3:     istore_2 
L4:     aload_0 
L5:     invokevirtual Method java/lang/String length ()I 
L8:     istore_3 
L9:     iconst_0 
L10:    istore 4 
L12:    iload 4 
L14:    iload_3 
L15:    if_icmpge L87 
L18:    aload_0 
L19:    iload 4 
L21:    invokevirtual Method java/lang/String charAt (I)C 
L24:    dup 
L25:    istore 5 
L27:    bipush 13 
L29:    if_icmpeq L53 
L32:    iload 5 
L34:    bipush 9 
L36:    if_icmpeq L53 
L39:    iload 5 
L41:    bipush 10 
L43:    if_icmpeq L53 
L46:    iload 5 
L48:    bipush 32 
L50:    if_icmpne L79 
L53:    iload_2 
L54:    ifeq L62 
L57:    iconst_1 
L58:    istore_1 
L59:    goto L87 
L62:    iload 5 
L64:    bipush 32 
L66:    if_icmpeq L74 
L69:    iconst_1 
L70:    istore_1 
L71:    goto L87 
L74:    iconst_1 
L75:    istore_2 
L76:    goto L81 
L79:    iconst_0 
L80:    istore_2 
L81:    iinc 4 1 
L84:    goto L12 
L87:    iload_1 
L88:    ifeq L223 
L91:    new java/lang/StringBuffer 
L94:    dup 
L95:    aload_0 
L96:    invokevirtual Method java/lang/String length ()I 
L99:    invokespecial Method java/lang/StringBuffer <init> (I)V 
L102:   astore 4 
L104:   iconst_1 
L105:   istore_2 
L106:   iconst_0 
L107:   istore 5 
L109:   iload 5 
L111:   iload_3 
L112:   if_icmpge L178 
L115:   aload_0 
L116:   iload 5 
L118:   invokevirtual Method java/lang/String charAt (I)C 
L121:   dup 
L122:   istore_1 
L123:   bipush 13 
L125:   if_icmpeq L146 
L128:   iload_1 
L129:   bipush 9 
L131:   if_icmpeq L146 
L134:   iload_1 
L135:   bipush 10 
L137:   if_icmpeq L146 
L140:   iload_1 
L141:   bipush 32 
L143:   if_icmpne L163 
L146:   iload_2 
L147:   ifne L172 
L150:   aload 4 
L152:   bipush 32 
L154:   invokevirtual Method java/lang/StringBuffer append (C)Ljava/lang/StringBuffer; 
L157:   pop 
L158:   iconst_1 
L159:   istore_2 
L160:   goto L172 
L163:   aload 4 
L165:   iload_1 
L166:   invokevirtual Method java/lang/StringBuffer append (C)Ljava/lang/StringBuffer; 
L169:   pop 
L170:   iconst_0 
L171:   istore_2 
L172:   iinc 5 1 
L175:   goto L109 
L178:   aload 4 
L180:   invokevirtual Method java/lang/StringBuffer length ()I 
L183:   ifle L217 
L186:   aload 4 
L188:   aload 4 
L190:   invokevirtual Method java/lang/StringBuffer length ()I 
L193:   iconst_1 
L194:   isub 
L195:   invokevirtual Method java/lang/StringBuffer charAt (I)C 
L198:   bipush 32 
L200:   if_icmpne L217 
L203:   aload 4 
L205:   iconst_0 
L206:   aload 4 
L208:   invokevirtual Method java/lang/StringBuffer length ()I 
L211:   iconst_1 
L212:   isub 
L213:   invokevirtual Method java/lang/StringBuffer substring (II)Ljava/lang/String; 
L216:   areturn 
L217:   aload 4 
L219:   invokevirtual Method java/lang/StringBuffer toString ()Ljava/lang/String; 
L222:   areturn 
L223:   iload_3 
L224:   ifle L248 
L227:   aload_0 
L228:   iload_3 
L229:   iconst_1 
L230:   isub 
L231:   invokevirtual Method java/lang/String charAt (I)C 
L234:   bipush 32 
L236:   if_icmpne L248 
L239:   aload_0 
L240:   iconst_0 
L241:   iload_3 
L242:   iconst_1 
L243:   isub 
L244:   invokevirtual Method java/lang/String substring (II)Ljava/lang/String; 
L247:   areturn 
L248:   aload_0 
L249:   areturn 
L250:   
    .end code 
.end method 

.method public static applyRule : (Lcom/liquid_technologies/ltxmllib18/WhitespaceRule;Ljava/lang/String;)Ljava/lang/String; 
    .code stack 5 locals 2 
L0:     aload_0 
L1:     getstatic Field com/liquid_technologies/ltxmllib18/WhitespaceRule NONE Lcom/liquid_technologies/ltxmllib18/WhitespaceRule; 
L4:     if_acmpne L9 
L7:     aload_1 
L8:     areturn 
L9:     aload_0 
L10:    getstatic Field com/liquid_technologies/ltxmllib18/WhitespaceRule COLLAPSE Lcom/liquid_technologies/ltxmllib18/WhitespaceRule; 
L13:    if_acmpne L21 
L16:    aload_1 
L17:    invokestatic Method com/liquid_technologies/ltxmllib18/WhitespaceUtils collapse (Ljava/lang/String;)Ljava/lang/String; 
L20:    areturn 
L21:    aload_0 
L22:    getstatic Field com/liquid_technologies/ltxmllib18/WhitespaceRule PRESERVE Lcom/liquid_technologies/ltxmllib18/WhitespaceRule; 
L25:    if_acmpne L33 
L28:    aload_1 
L29:    invokestatic Method com/liquid_technologies/ltxmllib18/WhitespaceUtils preserve (Ljava/lang/String;)Ljava/lang/String; 
L32:    areturn 
L33:    aload_0 
L34:    getstatic Field com/liquid_technologies/ltxmllib18/WhitespaceRule REPLACE Lcom/liquid_technologies/ltxmllib18/WhitespaceRule; 
L37:    if_acmpne L45 
L40:    aload_1 
L41:    invokestatic Method com/liquid_technologies/ltxmllib18/WhitespaceUtils replace (Ljava/lang/String;)Ljava/lang/String; 
L44:    areturn 
L45:    new com/liquid_technologies/ltxmllib18/exceptions/LtInvalidParamException 
L48:    dup 
L49:    new java/lang/StringBuilder 
L52:    dup 
L53:    ldc 'Unknown WhitespaceRule ' 
L55:    invokespecial Method java/lang/StringBuilder <init> (Ljava/lang/String;)V 
L58:    aload_0 
L59:    invokevirtual Method java/lang/StringBuilder append (Ljava/lang/Object;)Ljava/lang/StringBuilder; 
L62:    invokevirtual Method java/lang/StringBuilder toString ()Ljava/lang/String; 
L65:    invokespecial Method com/liquid_technologies/ltxmllib18/exceptions/LtInvalidParamException <init> (Ljava/lang/String;)V 
L68:    athrow 
L69:    
    .end code 
    .exceptions com/liquid_technologies/ltxmllib18/exceptions/LtInvalidParamException 
.end method 
.end class 
